layui.use(['table'], function () {
    var table = layui.table;

    /**
     * 物联卡综合信息--物联卡归属群组信息
     */
    var GeneralGroup = {
        tableId: "generalGroupTable",    //表格id
    };

    /**
     * 初始化表格的列
     */
    GeneralGroup.initColumn = function () {
        return [[
            {field: 'number', align: "center", title: '序号',type:'numbers',width: 60},
            {field: 'groupId', align: "center", title: '群组ID'},
            {field: 'offeringId', align: "center", title: '资费ID'},
            {field: 'offeringName', align: "center", title: '资费名称'}
        ]];
    };

    // 渲染表格
    table.render({
        elem: '#' + GeneralGroup.tableId,
        url: Feng.ctxPath + '/general/generalGroup?cardType=' + $("#cardType").val() + '&cardNum=' + $("#cardNum").val()+ '&accountId=' + $("#accountId").val(),
        height: "full-98",
        page: true,
        cellMinWidth: 100,
        cols: GeneralGroup.initColumn()
    });
});